package icegps.com.pingdj.data.ble;

import android.bluetooth.BluetoothGatt;

import com.clj.fastble.data.BleDevice;
import com.clj.fastble.exception.BleException;

import java.util.List;

/**
 * Created by 111 on 2018/1/15.
 */

public interface BleStatusCallback {


    public void onScanStarted(boolean success);

    public void onScanning(BleDevice result);

    public void onScanFinished(List<BleDevice> scanResultList);

    public void onStartConnect();

    public void onConnectFail(BleException exception);

    public void onConnectSuccess(BleDevice bleDevice, BluetoothGatt gatt, int status);

    public void onDisConnected(boolean isActiveDisConnected, BleDevice device, BluetoothGatt gatt, int status);

    public void onNotifySuccess();

    public void onNotifyFailure(BleException exception);

    public void onCharacteristicChanged(byte[] data);

    public void onWriteSuccess();

    public void onWriteFailure(BleException exception);

    public void onBleOpen();

    public void onBleClose();


}
